/* 表单样式 */
.create-article-container {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--light);
}

.form-group input[type="text"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border-radius: 5px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: white;
    font-family: 'Roboto', sans-serif;
    font-size: 1rem;
}

.form-group input[type="text"]:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(52, 152, 219, 0.3);
}

.form-group textarea {
    min-height: 300px;
    resize: vertical;
}

/* 预览样式 */
.preview-container {
    background: rgba(26, 26, 46, 0.6);
    border-radius: 15px;
    padding: 2rem;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-top: 2rem;
}

.preview-title {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.preview-content {
    color: #bdc3c7;
    line-height: 1.7;
}

.preview-content p {
    margin-bottom: 1rem;
}

.preview-content code {
    background: rgba(52, 152, 219, 0.1);
    padding: 0.2rem 0.4rem;
    border-radius: 3px;
    font-family: 'Source Code Pro', monospace;
}

.preview-content pre {
    background: rgba(44, 62, 80, 0.5);
    padding: 1rem;
    border-radius: 5px;
    overflow-x: auto;
    margin: 1rem 0;
    font-family: 'Source Code Pro', monospace;
}

.preview-content h2, .preview-content h3 {
    margin: 1.5rem 0 1rem;
    color: var(--primary);
}

.preview-content blockquote {
    border-left: 3px solid var(--primary);
    padding-left: 1rem;
    margin: 1rem 0;
    color: #bdc3c7;
    font-style: italic;
}

/* 响应式调整 */
@media (max-width: 768px) {
    .main-content {
        grid-template-columns: 1fr;
    }

    .sidebar {
        display: none;
    }
}
/* 下拉菜单样式 */
.custom-select {
    position: relative;
    display: block;
}

.custom-select select {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233498db' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
    cursor: pointer;
}

.custom-select::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}

/* 下拉菜单选项样式 */
.custom-select option {
    background: rgba(44, 62, 80, 0.9);
    color: white;
    border: none;
}

.custom-select option:hover {
    background: var(--primary);
}
